//
//  JSLoginViewController.m
//  NiubilityProject
//
//  Created by Apple on 2018/3/7.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import "JSLoginViewController.h"
#import "loginView.h"

@interface JSLoginViewController ()
@property (nonatomic, strong) UIScrollView  *scrollView;

@end

@implementation JSLoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIImageView *bg = [UIImageView new];
    [self.view addSubview:bg];
    [bg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];
    bg.image = UIImageMake(@"login_bg");
    _scrollView = [UIScrollView new];
    _scrollView.backgroundColor = [UIColor clearColor];
    [self.view addSubview:_scrollView];
    [_scrollView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.and.left.and.right.and.bottom.equalTo(self.view);
    }];
    loginView *loginv = [[loginView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    [_scrollView addSubview:loginv];
    _scrollView.contentSize = CGSizeMake(0, SCREEN_HEIGHT+1);

}
- (UIImage *)navigationBarBackgroundImage{
    return [UIImage qmui_imageWithColor:[UIColor clearColor]];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (void)setNavigationItemsIsInEditMode:(BOOL)isInEditMode animated:(BOOL)animated{
    [super setNavigationItemsIsInEditMode:isInEditMode animated:animated];
    if (userManager.isNeedLogin) {
        self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView: [UIView new]];
    }
}



@end
